<!DOCTYPE html>
<html lang="en">
<head>
	<title>天津立世科技有限公司</title>
	<meta charset="UTF-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<link rel="stylesheet" href="css/bootstrap.min.css" />
	<link rel="stylesheet" href="css/bootstrap-responsive.min.css" />
	<link rel="stylesheet" href="css/select2.css" />
	<link rel="stylesheet" href="css/uniform.css" />
	<link rel="stylesheet" href="css/matrix-style.css" />
	<link rel="stylesheet" href="css/matrix-media.css" />
	<link rel="stylesheet" href="css/datepicker.css" />
	<link rel="stylesheet" href="css/datetimepicker.css" />
	<link href="font-awesome/css/font-awesome.css" rel="stylesheet" />
	<link rel="stylesheet" href="css/jquery.gritter.css" />
	<link rel="stylesheet" href="css/google_fonts/google_fonts.css" />
	<link rel="stylesheet" href="../css/mycss.css" />
	<script src="js/excanvas.min.js"></script>
	<script src="js/jquery.min.js"></script>
	<script src="js/jquery.ui.custom.js"></script>
	<script src="js/bootstrap.min.js"></script>
	<script src="js/jquery.peity.min.js"></script>
	<script src="js/fullcalendar.min.js"></script>
	<script src="js/bootstrap-colorpicker.js"></script>
	<script src="js/bootstrap-datepicker.js"></script>
	<script src="js/bootstrap-datetimepicker.js"></script>
	<script src="js/bootstrap-datetimepicker.zh-CN.js"></script>
	<script src="js/matrix.js"></script>
	<script src="js/jquery.gritter.min.js"></script>
	<script src="js/matrix.interface.js"></script>
	<script src="js/matrix.chat.js"></script>
	<script src="../js/libs/jquery.blockUI.js"></script>
	<script src="../js/libs/common.js"></script>
	<script src="js/jquery.validate.js"></script>
	<{*
	<script src="js/matrix.form_validation.js"></script>
	*}>
	<script src="js/jquery.wizard.js"></script>
	<script src="js/jquery.uniform.js"></script>
	<script src="js/select2.min.js"></script>
	<script src="js/matrix.popover.js"></script>
	<script src="js/jquery.dataTables.min.js"></script>
	<script src="js/matrix.tables.js"></script>
	<script src="../js/libs/ajaxfileupload.js"></script>
	<script src="../libs/ueditor/ueditor.config.js"></script>
	<script src="../libs/ueditor/ueditor.all.js"> </script>
	<script src="../libs/ueditor/lang/zh-cn/zh-cn.js"></script>
	<script>
		function general_post_function(obj){
			if(typeof($(obj).attr("zxalert")) != "undefined")
				if(!confirm($(obj).attr("zxalert"))) return false;
			$.ajax({
				type: "POST",
				url: $(obj).attr("zxhref"),
				dataType: 'json',
				beforeSend: function(){
					showBlockMsg(".zxblockui", "");
					return true;
				},
				success: function(json, textStatus){
					var obj_win = json.top ? top : window;
					if(json.result == 1){
						if(json.msg)
							alert(json.msg);
						if(json.url){
							obj_win.location.href = json.url.replace(/&amp;/g,'&').replace(/&amp;/g,'&');
						}else{
							obj_win.location.reload();
						}
					}else {
						if(json.msg)
							alert(json.msg);
						if(json.url){
							obj_win.location.href = json.url.replace(/&amp;/g,'&').replace(/&amp;/g,'&');
						}else{
							hideBlockMsg('.zxblockui');
						}
						/*
						 showBlockMsg(".form", json.msg, 'error');
						 if(json.url){
						 obj_win.location.href = json.url.replace(/&amp;/g,'&').replace(/&amp;/g,'&');
						 }else{
						 window.setTimeout(function() {
						 hideBlockMsg('.form');
						 }, 2000);
						 }
						 */
					}
				},
				error: function(xml, status){
					hideBlockMsg('.zxblockui');
					showErrorDialog(xml.responseText);
				}
			});
			return false;
		}
		$(function(){
			$(".general_post").click(function(){
				if(typeof($(this).attr("zxalert")) != "undefined")
					if(!confirm($(this).attr("zxalert"))) return false;
				$.ajax({
					type: "POST",
					url: $(this).attr("zxhref"),
					dataType: 'json',
					beforeSend: function(){
						showBlockMsg(".zxblockui", "");
						return true;
					},
					success: function(json, textStatus){
						var obj_win = json.top ? top : window;
						if(json.result == 1){
							/*
							 showBlockMsg('.form', json.msg, 'ok');
							 window.setTimeout(function() {
							 if(json.url){
							 obj_win.location.href = json.url.replace(/&amp;/g,'&').replace(/&amp;/g,'&');
							 }else{
							 obj_win.location.reload();
							 }
							 }, 2000);
							 */
							if(json.msg)
								alert(json.msg);
							if(json.url){
								obj_win.location.href = json.url.replace(/&amp;/g,'&').replace(/&amp;/g,'&');
							}else{
								obj_win.location.reload();
							}
						}else {
							if(json.msg)
								alert(json.msg);
							if(json.url){
								obj_win.location.href = json.url.replace(/&amp;/g,'&').replace(/&amp;/g,'&');
							}else{
								hideBlockMsg('.zxblockui');
							}
							/*
							 showBlockMsg(".form", json.msg, 'error');
							 if(json.url){
							 obj_win.location.href = json.url.replace(/&amp;/g,'&').replace(/&amp;/g,'&');
							 }else{
							 window.setTimeout(function() {
							 hideBlockMsg('.form');
							 }, 2000);
							 }
							 */
						}
					},
					error: function(xml, status){
						hideBlockMsg('.zxblockui');
						showErrorDialog(xml.responseText);
					}
				});
				return false;
			});

			$(".form_post").click(function(){
				if(typeof($(this).attr("zxalert")) != "undefined")
					if(!confirm($(this).attr("zxalert"))) return false;
				$(".form_post_disabled").attr("disabled",true);
				$.ajax({
					type: "POST",
					url: $(this).attr("zxhref"),
					data: $(this).parents("form").eq(0).serialize(),
					dataType: 'json',
					beforeSend: function(){
						showBlockMsg(".zxblockui", "");
						return true;
					},
					success: function(json, textStatus){
						var obj_win = json.top ? top : window;
						if(json.result == 1){
							/*
							 showBlockMsg('.form', json.msg, 'ok');
							 window.setTimeout(function() {
							 if(json.url){
							 obj_win.location.href = json.url.replace(/&amp;/g,'&').replace(/&amp;/g,'&');
							 }else{
							 obj_win.location.reload();
							 }
							 }, 2000);
							 */
							if(json.msg)
								alert(json.msg);
							if(json.url){
								obj_win.location.href = json.url.replace(/&amp;/g,'&').replace(/&amp;/g,'&');
							}else{
								obj_win.location.reload();
							}
						}else {
							if(json.msg)
								alert(json.msg);
							if(json.url){
								obj_win.location.href = json.url.replace(/&amp;/g,'&').replace(/&amp;/g,'&');
							}else{
								hideBlockMsg('.zxblockui');
							}
							/*
							 showBlockMsg(".form", json.msg, 'error');
							 if(json.url){
							 obj_win.location.href = json.url.replace(/&amp;/g,'&').replace(/&amp;/g,'&');
							 }else{
							 window.setTimeout(function() {
							 hideBlockMsg('.form');
							 }, 2000);
							 }
							 */
						}
						$(".form_post_disabled").attr("disabled",false);
					},
					error: function(xml, status){
						$(".form_post_disabled").attr("disabled",false);
						hideBlockMsg('.zxblockui');
						showErrorDialog(xml.responseText);
					}
				});
				return false;
			});
			
			$(".field_upload").click(function(){
				showBlockMsg(".form", "");
				ajaxFileUpload($(this).attr("file_id"), $(this).attr("target_id"), $(this).attr("thumb_width"), $(this).attr("thumb_height"), $(this).attr("allow_ext"));
			});
			function ajaxFileUpload($file_id, $target_id, $thumb_width, $thumb_height, $allow_ext) {
				$.ajaxFileUpload({
					url: '<{spUrl c=articles a=ajaxfile}>&file=' + $file_id + '&thumb_width=' + $thumb_width + '&thumb_height=' + $thumb_height + '&allow_ext=' + $allow_ext,
					secureuri: false,
					fileElementId: $file_id,
					dataType: 'json',
					success: function (json, status){
						if(json.result == 0) {
							alert(json.msg);
						}else if(json.result == 1){
							$("#" + $target_id).val(json.imgurl);
							$("#" + $target_id + "_view").attr("href", "../" + json.imgurl).removeClass("zxhide");
						}
						hideBlockMsg('.form');
					},
					error: function (data, status, e){
						alert(e);
						hideBlockMsg('.form');
					}
				});
				return false;
			}
			
			$(".stext").each(function(i){
				var stextid = $(this).attr("id");
				var ue = UE.getEditor(stextid, {
					initialFrameHeight: 500,
					autoHeightEnabled: true,
					autoFloatEnabled: true,
				});
				ue.ready(function() {
					ue.execCommand('serverparam', 'back', '1');
				});
				$(this).after("<div class='zxclear'></div>");
			});
			if (self != top) {
				/* 在iframe中 */
				if($('#framebodyonly', parent.document).val() == 1){
					$("#header").hide();
					$("#user-nav").hide();
					$("#search").hide();
					$("#sidebar").hide();
					$("#content").css({"margin-left":0});
					$("#footer").hide();
					$("body").css({"background":"#EFEFEF"});
				}
			}
		});
	</script>
</head>
<body>

<!--Header-part-->
<div id="header">
	<h1><a href="http://www.standsky.cn/">天津立世科技有限公司</a></h1>
</div>
<!--close-Header-part-->


<!--top-Header-menu-->
<div id="user-nav" class="navbar navbar-inverse">
	<ul class="nav">
		<li class="dropdown" id="profile-messages">
			<a title="" href="#" data-toggle="dropdown" data-target="#profile-messages" class="dropdown-toggle">
				<i class="icon icon-user"></i>
				<span class="text">Welcome <{$smarty.session.admin_user.username}></span>
				<b class="caret"></b>
			</a>
			<ul class="dropdown-menu">
				<li><a href="<{spUrl c=mybasic a=updatepwd}>"><i class="icon-user"></i> 修改密码</a></li>
				<li class="divider"></li>
				<li><a href="<{spUrl c=main a=logout}>"><i class="icon-key"></i> Log Out</a></li>
			</ul>
		</li>
		<{*
		<li class="dropdown" id="menu-messages"><a href="#" data-toggle="dropdown" data-target="#menu-messages" class="dropdown-toggle"><i class="icon icon-envelope"></i> <span class="text">Messages</span> <span class="label label-important">5</span> <b class="caret"></b></a>
			<ul class="dropdown-menu">
				<li><a class="sAdd" title="" href="#"><i class="icon-plus"></i> new message</a></li>
				<li class="divider"></li>
				<li><a class="sInbox" title="" href="#"><i class="icon-envelope"></i> inbox</a></li>
				<li class="divider"></li>
				<li><a class="sOutbox" title="" href="#"><i class="icon-arrow-up"></i> outbox</a></li>
				<li class="divider"></li>
				<li><a class="sTrash" title="" href="#"><i class="icon-trash"></i> trash</a></li>
			</ul>
		</li>
		*}>
		<li class=""><a title="" href="<{spUrl c=main a=logout}>"><i class="icon icon-share-alt"></i> <span class="text">退出登录</span></a></li>
	</ul>
</div>
<!--close-top-Header-menu-->
<!--start-top-serch-->
<!--
<div id="search">
	<input type="text" placeholder="Search here..."/>
	<button type="submit" class="tip-bottom" title="Search"><i class="icon-search icon-white"></i></button>
</div>
-->
<div id="search" class="zx_white">
	<script language="javascript">
		$(function(){
			//setInterval("$('#currentTime').text(new Date().toLocalsString());",1000);
			nowtime = <{$smarty.now}>;
			setInterval(function(){
				nowtime++;
				$("#currentTime").text(new Date(nowtime * 1000).toLocaleString());
			},1000);
		});
	</script>
	当前时间：<span id="currentTime"></span>
</div>
<!--close-top-serch-->